From: Florian Müllner Date: Fri, 25 Nov 2022 16:08:51 +0000 (+0100) Subject: status/volume: Clear device menus when unsetting stream X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~221 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1b62b7ea0a8aff38ef8c6873cb8b7651abe24044;p=gnome-shell.git status/volume: Clear device menus when unsetting stream Otherwise we end up accumulating devices when pipewire crashes or is restarted. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6142 Part-of: --- diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index bd49cc3ae..57e179974 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -83,6 +83,8 @@ const StreamSlider = GObject.registerClass({ this._connectStream(this._stream); this._updateVolume(); } else { + this._deviceSection.removeAll(); + this._deviceItems.clear(); this.emit('stream-updated'); }